public class test2 {
    class Solution {
        public int findLengthOfLCIS(int[] nums) {
            //要求连续
            int count = 1;
            int res = 1;
            for(int i = 1;i<nums.length;i++){
                if(nums[i]>nums[i-1]){
                    count++;
                }else{
                    count = 1;
                }
                res = Math.max(res,count);
            }
            return res;
        }
    }
}
